
const w2 = require('../whistle');


console.info("run whistle");


// var cmd = require("./elec/spawn")
// cmd("adb devices ",(isSucc,info)=>{
//     console.info(info);
// },{type:"adb"});

if (!process.argv || process.argv.length < 2) {
    process.argv = ['mock', 'mock'];
}
var options = {
    host: process.env.WHISTLE_HOST || '127.0.0.1',
    port: 8899,
    // socksPort,
    // storage: whistleStoragePath,
    // certDir: options.certDir,
    // pluginPaths: pluginPaths.filter(item => typeof item === 'string' && item !== 'undefined'),
    // mode: 'disableUpdateTips'
}
w2({},()=>{
    console.info("whistle started : http://"+options.host+":"+options.port)
})